package com.shuwen.gcdj.common.constant;

public class MemberCst {
    private MemberCst() {

    }

    public static final Integer IS_SECRET_YES = 1;
    public static final Integer IS_SECRET_NO = 0;
    public static final Integer IS_MENUS_YES = 1;
    public static final Integer IS_MENUS_NO = 0;
    public static final String PWD_PREFIX = "iBs";
    public static final String PWD_SUFFIX = "eCe";

    public static final Integer ACCOUNT_FROM_OA = 1;
    public static final Integer ACCOUNT_FROM_CUSTOMER_DEFINE = 2;

    public static final String JWT_TOKEN_SECRET_KEY = "J72KtgVELY44cm5Ck3XLXAwCdW";
    public static final String JWT_TOKEN_HEADER_KEY = "eceibstoken";
    public static final String JWT_CLAIM_KEY_USER_ID = "userId";
    public static final String JWT_CLAIM_KEY_DEPT_ID = "deptId";
    public static final String JWT_CLAIM_KEY_RANDOM_CODE = "randomCode";
    public static final String HEADER_KEY_POWER_CODE = "powercode";
    public static String LOGIN_USER_ID = "Id";


    public static final String ACCOUNT_LOGIN_INFO_CACHE_PREFIX_KEY = "user:auth:";
    public static final String ACCOUNT_ROLE_CACHE_PREFIX_KEY = "user:role:single:";
    public static final String ACCOUNT_POWER_CACHE_PREFIX_KEY = "user:power:single:";
    public static final String ACCOUNT_ALL_ROLE_CACHE_KEY = "user:role:all";
    public static final String ACCOUNT_ALL_POWER_CACHE_KEY = "user:power:all";
    public static final String ACCOUNT_USER_ROLES_CACHE_KEY = "user:roles:uid:";
    public static final String ACCOUNT_USER_POWERS_CACHE_KEY = "user:powers:uid:";

    public static final Integer JWT_TOKEN_EXPIRE_TIME_HOURS = 24;
    public static final Long ACCOUNT_ROLE_POWER_EXPIRE_SECONDS = 86400L;
    public static final Long ACCOUNT_ROLE_EXPIRE_SECONDS = 3600L;
    public static final Long ACCOUNT_POWER_EXPIRE_SECONDS = 3600L;
    public static final Long ACCOUNT_ALL_ROLES_EXPIRE_SECONDS = 3600L;
    public static final Long ACCOUNT_ALL_POWERS_EXPIRE_SECONDS = 3600L;
    public static final Long ACCOUNT_USER_ROLES_EXPIRE_SECONDS = 86400L;
    public static final Long ACCOUNT_USER_POWERS_EXPIRE_SECONDS = 86400L;
    public static final Long ACCOUNT_USER_EXPIRE_SECONDS = 15552000L;

    public static final Integer IS_ACTIVE_SYNC_ACCOUNT_FORBIDDEN = 0;
    public static final Integer IS_ACTIVE_SYNC_ACCOUNT_ACTIVE = 1;
    public static final Integer IS_ACTIVE_ACCOUNT_ZO_FORBIDDEN = 2;
    public static final Integer ACCOUNT_LOGIN_TIME_INITIALIZED = 0;


    public static final int DATA_LEVEL_ALL = 1;
    public static final int DATA_LEVEL_ONLY_DEPT_AND_SUB_DEPT = 2;
    public static final int DATA_LEVEL_ONLY_CREATOR_SELF = 4;
    public static final int DATA_LEVEL_SELECT_DEPT = 8;

    // 中欧商业在线组织架构id
    public static final String DEPT_ID_CEIBS_ONLINE = "3a2e0902-8864-49ea-9795-a185a37032ba";

    // 云学堂组织架构id
    public static final String DEPT_ID_YXT = "e73d714b-7b80-4a9f-bbbb-debdf2b7c83d";

    public static final String COMPANY_CODE_CEIBS = "ceibs";
    public static final String COMPANY_CODE_YXT = "yxt";
}
